//
//  CepEvent.m
//  YouthOlympic2014
//
//  Created by Li Yuhang on 14-7-1.
//  Copyright (c) 2014年 mitian. All rights reserved.
//

#import "CepEvent.h"

@implementation CepEvent
@synthesize id,cepId,place,begintime,endtime,name,isFollow;


- (NSString*) getEventTimeRangeDescription{
    return begintime;
}

- (NSString*) description{
    NSDictionary* beginDict = [AppUtils parseApiTimeToDictionary:self.begintime];
    NSDictionary* endDict = [AppUtils parseApiTimeToDictionary:self.endtime];
    return [NSString stringWithFormat:@"%@-%@-%@  %@:%@-%@:%@", beginDict[@"year"], beginDict[@"month"], beginDict[@"day"],
            beginDict[@"hour"], beginDict[@"minute"],endDict[@"hour"],endDict[@"minute"] ] ;
}
@end
